    /***
     * @description axios封装
     * @file api.ts
     * @author andy
     * @date 2024/3/22 16:40
     */
// file:prod.s
// 1、导入axios以及拦截器
import service from './request'

// 获取商品信息
export const getProdById = (prodId:any) => {
    return service({
        url: '/prod/index/getProdById/' + prodId,
        method: 'post'
    })
};


// 获取商品信息列表
export const getProdInfoList = (data:any) => {
    return service({
        url: '/prod/index/getProdInfoList',
        method: 'post',
        data
    })
};
//商品详情查询
export const selectProdInfoService = () => {
    return service({
        url: '/prod/index/selectProdInfo',
        method: 'post',
    })
};

// 查询字典数据
export const selectDictByService = (typeId:any) => {
    return service({
        url: '/prod/dict/getDictListByTypeId/'+typeId,
        method: 'post',
    })
};

// 添加商品SKU
export const addProdInfo = (data:any) => {
    return service({
        url: '/prod/index/addProdInfo',
        method: 'post',
        data
    })
};
